package com.chentf.ssh.service.impl;

import com.chentf.ssh.dao.UserDAO;
import com.chentf.ssh.entity.User;
import com.chentf.ssh.service.UserService;
import lombok.Getter;
import lombok.Setter;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-01-30 21:55:11
 */
@Transactional
public class UserServiceImpl implements UserService {
    @Getter
    @Setter
    public UserDAO userDAO;

    @Override
    public void register(User user) {
        userDAO.save(user);
    }
}
